USE [GD1C2012]
GO

/****** Object:  Table [SUPERACIDOS].[Reloj]    Script Date: 06/11/2012 09:25:05 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [SUPERACIDOS].[Reloj](
	[Reloj_Id] [int] IDENTITY(1,1) NOT NULL,
	[Reloj_ModeloId] [int] NOT NULL,
	[Reloj_Fecha_Ver] [datetime] NULL,
	[Reloj_NumeroSerie] [char](18) NULL,
	[Reloj_Habilitado] [bit] NOT NULL,
 CONSTRAINT [PK_Reloj] PRIMARY KEY CLUSTERED 
(
	[Reloj_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [SUPERACIDOS].[Reloj]  WITH CHECK ADD  CONSTRAINT [FK_Reloj_Modelo_Reloj] FOREIGN KEY([Reloj_ModeloId])
REFERENCES [SUPERACIDOS].[Modelo_Reloj] ([MoRe_Id])
GO

ALTER TABLE [SUPERACIDOS].[Reloj] CHECK CONSTRAINT [FK_Reloj_Modelo_Reloj]
GO

ALTER TABLE [SUPERACIDOS].[Reloj] ADD  CONSTRAINT [DF_Reloj_Reloj_Habilitado]  DEFAULT ((1)) FOR [Reloj_Habilitado]
GO

